package com.yboot.framework.plugin.generator.property;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author .
 * @date 2022-11-10
 */
@Component
@ConfigurationProperties(prefix = "gen")
public class CodeGenProperty {

    /**
     * 作者
     */
    private String author = "fengy";
    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 表信息
     */
    private TableProperty table = new TableProperty();

    /**
     * Controller 配置
     */
    private ControllerProperty controller = new ControllerProperty();

    /**
     * 代码生成的可选配置
     */
    private GenOptionProperty genOption = new GenOptionProperty();

    /**
     * 输出配置
     */
    private OutputProperty output = new OutputProperty();

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public TableProperty getTable() {
        return table;
    }

    public void setTable(TableProperty table) {
        this.table = table;
    }

    public ControllerProperty getController() {
        return controller;
    }

    public void setController(ControllerProperty controller) {
        this.controller = controller;
    }

    public OutputProperty getOutput() {
        return output;
    }

    public void setOutput(OutputProperty output) {
        this.output = output;
    }

    public GenOptionProperty getGenOption() {
        return genOption;
    }

    public void setGenOption(GenOptionProperty genOption) {
        this.genOption = genOption;
    }
}


